<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
<title>Valid</title>
</head>
<body>

<form method="POST">
Please input msg:
<input type="text" name="msg" value="${msg}" />
<input type="submit" value="Query" />
<p>
Show:</p>
MsgValid:<span style="color:red">${valid}</span><br>
Msg:<span style="color:red">${msg}</span><br>

</form>

</body>
</html>